package com.base.api.dto.selfAddress;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SelfAddressApiListDTO implements Serializable {
    @NotNull
    @ApiModelProperty(value="页码", example = "1")
    private Integer offset;

    @NotNull
    @ApiModelProperty(value="页码大小",example = "10")
    private Integer limit;

    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value="用户id",example = "10")
    private String userId;
}
